<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!-- 版权样式默认 -->
<th:block th:fragment="copyright-default" th:if="${#strings.equals(theme.config.post.copyrightsStyle, 'default')}">
    <div class="post-tools" id="post-tools">
        <div class="post-tools-left">

            <!-- 打赏 -->
            <div th:if="${theme.config.aboutReward.reward.enable_reward_wz}" class="post-reward"
                 onclick="AddRewardMask()">
                <div class="reward-button button&#45;&#45;animated" title="赞赏作者"><i class="fas fa-hamburger"></i>
                    打赏作者
                </div>
                <div class="reward-main">
                    <ul class="reward-all"><span class="reward-title">感谢你赐予我前进的力量</span>
                        <ul class="reward-group">
                            <li class="reward-item"><a th:href="@{${theme.config.aboutReward.reward.wxPay}}"
                                                       target="_blank">
                                <img alt="微信" class="post-qr-code-img"
                                     th:src="${theme.config.aboutReward.reward.wxPay}"></a>
                                <div class="post-qr-code-desc">微信</div>
                            </li>
                            <li class="reward-item"><a th:href="@{${theme.config.aboutReward.reward.alipay}}"
                                                       target="_blank"><img alt="支付宝" class="post-qr-code-img"
                                                                            th:src="${theme.config.aboutReward.reward.alipay}"></a>
                                <div class="post-qr-code-desc">支付宝</div>
                            </li>
                        </ul>
                        <a class="reward-main-btn" th:href="@{${theme.config.aboutReward.reward.reward_md_url}}"
                           target="_blank">
                            <div class="reward-text">赞赏者名单</div>
                            <div class="reward-dec">因为你们的支持让我意识到写文章的价值🙏</div>
                        </a>
                    </ul>
                </div>
            </div>

            <!-- 说明 -->
            <div th:if="${theme.config.post.post_edit.enable_post_edit}" class="reward-link mode"><a
                    class="reward-link-button" th:href="@{${theme.config.post.post_edit.post_edit_url}}">
                <i class="fas fa-seedling"></i>运营模式与责任</a>
            </div>

            <!-- 分享 -->
            <div class="share-link mobile" th:if="${theme.config.post.share_right.mobile_edit}">
                <div class="share-qrcode">
                    <div class="share-button" title="使用手机访问这篇文章"><i class="iconfont icon-qrcode"></i>
                    </div>
                    <div class="share-main">
                        <div class="share-main-all">
                            <div id="qrcode"></div>
                            <div class="reward-dec">使用手机访问这篇文章</div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="share-link weibo" th:if="${theme.config.post.share_right.weibo_edit}">
                <a class="share-button" rel="noopener external nofollow noreferrer noopener" target="_blank"
                   th:href="'https://service.weibo.com/share/share.php?title=' + ${post.spec.title}" title="分享到微博">
                    <i class="iconfont icon-weibo" style="font-size:22px"></i></a>
            </div>
            <div class="share-link copyurl" th:if="${theme.config.post.share_right.copyurl_edit}">
                <div class="share-button" id="post-share-url" onclick="rm.copyPageUrl()" title="复制链接"><i
                        class="iconfont icon-link"></i></div>
            </div>
        </div>
        <div class="post-tools-right">
            <div class="tag_share">
                <div class="post-meta__tag-list">
                    <a class="post-meta__tags" th:each="tag : ${post.tags}" th:href="@{${tag.status.permalink}}">
                        <span class="tags-punctuation">[[${tag.spec.displayName}]]</span>

                        <span class="tagsPageCount" th:text="${tag.status.visiblePostCount}"></span>
                    </a>
                </div>
            </div>
        </div>
    </div>

    <!-- 版权声明 -->
    <div class="post-copyright" th:if="${theme.config.post.copyrights.enable}">
        <div class="post-copyright__author">
            <!-- 版权页 以及版权描述文字 -->
            <a class="post-copyright__original" th:href="@{${theme.config.basics.copyrightAgreement}}"
               title="该文章为原创文章，注意版权协议">原创</a>
            <a class="post-copyright-title" href="#"><span th:text="${post.spec.title}"></span></a>
        </div>
        <div class="post-copyright__type">
            <span class="post-copyright-info" id="post-copyright-url">
                <a href="javascript:window.location.href;">[[${post.spec.title}]]</a>
            </span>
            <button class="post-copyright-copybtn" onclick="rm.copyPageUrl()">
                <i class="iconfont icon-paste"></i>
            </button>
        </div>
        <div class="post-copyright__notice">
            <span class="post-copyright-info" th:utext="${theme.config.post.copyrights.content}"></span>
        </div>
    </div>

    <link rel="stylesheet" th:href="${assets_link + '/css/post-copyright.css' + theme_version}">
</th:block>


</html>